package com.demoworld;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.*;
import org.springframework.boot.autoconfigure.*;
import org.springframework.stereotype.*;
import org.springframework.web.bind.annotation.*;

/**
 * Description
 * <p>
 * </p>
 * DATE 2018/5/19.
 *
 * @author liwei5.
 */
@Controller
@EnableAutoConfiguration
@EnableLogger
public class Application {
    @Autowired
    private Logger logger;

    @RequestMapping("/")
    @ResponseBody
    String home(String id) {
        return logger.get(id);
    }

    public static void main(String[] args) throws Exception {
        SpringApplication.run(Application.class, args);
    }
}
